.class public final Lcn/cheln/explorer/ds/scan/d;
.super Ljava/lang/Object;


# static fields
.field private static a:[Ljava/lang/String;


# instance fields
.field private b:Ljava/util/Map;


# direct methods
.method static constructor <clinit>()V
    .locals 7

    const/4 v6, 0x4

    const/4 v5, 0x3

    const/4 v4, 0x2

    const/4 v3, 0x1

    const/4 v2, 0x0

    new-array v0, v6, [Ljava/lang/String;

    const-string v1, "_data"

    aput-object v1, v0, v2

    const-string v1, "title"

    aput-object v1, v0, v3

    const-string v1, "_size"

    aput-object v1, v0, v4

    const-string v1, "date_modified"

    aput-object v1, v0, v5

    const/4 v0, 0x5

    new-array v0, v0, [Ljava/lang/String;

    const-string v1, "_id"

    aput-object v1, v0, v2

    const-string v1, "_data"

    aput-object v1, v0, v3

    const-string v1, "_size"

    aput-object v1, v0, v4

    const-string v1, "date_modified"

    aput-object v1, v0, v5

    const-string v1, "sort_key"

    aput-object v1, v0, v6

    sput-object v0, Lcn/cheln/explorer/ds/scan/d;->a:[Ljava/lang/String;

    return-void
.end method

.method public constructor <init>()V
    .locals 4

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcn/cheln/explorer/ds/scan/d;->b:Ljava/util/Map;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/d;->b:Ljava/util/Map;

    const-string v1, "image"

    new-instance v2, Lcn/cheln/explorer/ds/scan/a;

    sget-object v3, Lcn/cheln/explorer/ds/a;->c:Landroid/net/Uri;

    invoke-direct {v2, v3}, Lcn/cheln/explorer/ds/scan/a;-><init>(Landroid/net/Uri;)V

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/d;->b:Ljava/util/Map;

    const-string v1, "audio"

    new-instance v2, Lcn/cheln/explorer/ds/scan/a;

    sget-object v3, Lcn/cheln/explorer/ds/a;->a:Landroid/net/Uri;

    invoke-direct {v2, v3}, Lcn/cheln/explorer/ds/scan/a;-><init>(Landroid/net/Uri;)V

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/d;->b:Ljava/util/Map;

    const-string v1, "video"

    new-instance v2, Lcn/cheln/explorer/ds/scan/a;

    sget-object v3, Lcn/cheln/explorer/ds/a;->b:Landroid/net/Uri;

    invoke-direct {v2, v3}, Lcn/cheln/explorer/ds/scan/a;-><init>(Landroid/net/Uri;)V

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/d;->b:Ljava/util/Map;

    const-string v1, "apk"

    new-instance v2, Lcn/cheln/explorer/ds/scan/a;

    sget-object v3, Lcn/cheln/explorer/ds/a;->e:Landroid/net/Uri;

    invoke-direct {v2, v3}, Lcn/cheln/explorer/ds/scan/a;-><init>(Landroid/net/Uri;)V

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/d;->b:Ljava/util/Map;

    const-string v1, "doc"

    new-instance v2, Lcn/cheln/explorer/ds/scan/a;

    sget-object v3, Lcn/cheln/explorer/ds/a;->e:Landroid/net/Uri;

    invoke-direct {v2, v3}, Lcn/cheln/explorer/ds/scan/a;-><init>(Landroid/net/Uri;)V

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/d;->b:Ljava/util/Map;

    const-string v1, "folder"

    new-instance v2, Lcn/cheln/explorer/ds/scan/a;

    sget-object v3, Lcn/cheln/explorer/ds/a;->d:Landroid/net/Uri;

    invoke-direct {v2, v3}, Lcn/cheln/explorer/ds/scan/a;-><init>(Landroid/net/Uri;)V

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/d;->b:Ljava/util/Map;

    const-string v1, "lewa/theme"

    new-instance v2, Lcn/cheln/explorer/ds/scan/a;

    sget-object v3, Lcn/cheln/explorer/ds/a;->e:Landroid/net/Uri;

    invoke-direct {v2, v3}, Lcn/cheln/explorer/ds/scan/a;-><init>(Landroid/net/Uri;)V

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    return-void
.end method

.method private declared-synchronized a(Landroid/content/Context;Landroid/net/Uri;Ljava/lang/String;)Landroid/database/Cursor;
    .locals 6

    monitor-enter p0

    :try_start_0
    invoke-virtual {p1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    sget-object v2, Lcn/cheln/explorer/ds/scan/d;->a:[Ljava/lang/String;

    const/4 v4, 0x0

    const-string v5, "_data asc"

    move-object v1, p2

    move-object v3, p3

    invoke-virtual/range {v0 .. v5}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result-object v0

    monitor-exit p0

    return-object v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method private static varargs declared-synchronized a(Landroid/content/Context;Landroid/net/Uri;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;
    .locals 7

    const-class v6, Lcn/cheln/explorer/ds/scan/d;

    monitor-enter v6

    :try_start_0
    invoke-virtual {p0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    const-string v3, "mime_type like ? "

    const/4 v1, 0x1

    new-array v4, v1, [Ljava/lang/String;

    const/4 v1, 0x0

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p2}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v5, "%"

    invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    aput-object v2, v4, v1

    move-object v1, p1

    move-object v2, p4

    move-object v5, p3

    invoke-virtual/range {v0 .. v5}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result-object v0

    monitor-exit v6

    return-object v0

    :catchall_0
    move-exception v0

    monitor-exit v6

    throw v0
.end method

.method private static a(Landroid/content/Context;Landroid/net/Uri;I)V
    .locals 5

    :try_start_0
    invoke-virtual {p0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    const-string v1, "_id = ?"

    const/4 v2, 0x1

    new-array v2, v2, [Ljava/lang/String;

    const/4 v3, 0x0

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v4, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    aput-object v4, v2, v3

    invoke-virtual {v0, p1, v1, v2}, Landroid/content/ContentResolver;->delete(Landroid/net/Uri;Ljava/lang/String;[Ljava/lang/String;)I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    return-void

    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method private static a(Landroid/database/Cursor;Lcn/cheln/explorer/ds/scan/a;)V
    .locals 5

    if-nez p0, :cond_0

    :goto_0
    return-void

    :cond_0
    :goto_1
    invoke-interface {p0}, Landroid/database/Cursor;->moveToNext()Z

    move-result v0

    if-eqz v0, :cond_3

    :try_start_0
    const-string v0, "_data"

    invoke-interface {p0, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v0

    invoke-interface {p0, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v0

    const-string v1, "_id"

    invoke-interface {p0, v1}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v1

    invoke-interface {p0, v1}, Landroid/database/Cursor;->getInt(I)I

    move-result v1

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string v2, "sort_key"

    invoke-interface {p0, v2}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v2

    invoke-interface {p0, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v2

    const-string v3, "_size"

    invoke-interface {p0, v3}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v3

    invoke-interface {p0, v3}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    const-string v3, "date_modified"

    invoke-interface {p0, v3}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v3

    invoke-interface {p0, v3}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    new-instance v4, Lcn/cheln/explorer/beans/b;

    invoke-direct {v4, v1, v0, v3, v2}, Lcn/cheln/explorer/beans/b;-><init>(Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    if-eqz v0, :cond_1

    const-string v1, ""

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    :cond_1
    iget-object v1, p1, Lcn/cheln/explorer/ds/scan/a;->b:Ljava/util/Map;

    invoke-interface {v1, v4, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_1

    :cond_2
    :try_start_1
    iget-object v1, p1, Lcn/cheln/explorer/ds/scan/a;->c:Ljava/util/Map;

    invoke-interface {v1, v0, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_1

    :cond_3
    invoke-interface {p0}, Landroid/database/Cursor;->close()V

    goto :goto_0
.end method

.method public static a(Ljava/io/File;Landroid/net/Uri;Landroid/content/Context;ZLcn/cheln/explorer/beans/b;)Z
    .locals 8

    const/4 v7, 0x1

    const/4 v6, 0x0

    if-nez p4, :cond_0

    const/4 v0, 0x0

    :goto_0
    if-eqz p3, :cond_2

    invoke-virtual {p2}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v1

    invoke-static {p0}, Lcn/cheln/explorer/ds/b/a;->a(Ljava/io/File;)Landroid/content/ContentValues;

    move-result-object v2

    const-string v3, "_id = ?"

    new-array v4, v7, [Ljava/lang/String;

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v5, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    aput-object v0, v4, v6

    invoke-virtual {v1, p1, v2, v3, v4}, Landroid/content/ContentResolver;->update(Landroid/net/Uri;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    move-result v0

    if-lez v0, :cond_1

    move v0, v7

    :goto_1
    return v0

    :cond_0
    iget-object v0, p4, Lcn/cheln/explorer/beans/b;->a:Ljava/lang/Integer;

    goto :goto_0

    :cond_1
    move v0, v6

    goto :goto_1

    :cond_2
    invoke-virtual {p2}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    invoke-static {p0}, Lcn/cheln/explorer/ds/b/a;->a(Ljava/io/File;)Landroid/content/ContentValues;

    move-result-object v1

    invoke-virtual {v0, p1, v1}, Landroid/content/ContentResolver;->insert(Landroid/net/Uri;Landroid/content/ContentValues;)Landroid/net/Uri;

    move-result-object v0

    if-eqz v0, :cond_3

    move v0, v7

    goto :goto_1

    :cond_3
    move v0, v6

    goto :goto_1
.end method


# virtual methods
.method public final a()Ljava/util/Map;
    .locals 1

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/d;->b:Ljava/util/Map;

    return-object v0
.end method

.method public final a(Landroid/content/Context;)V
    .locals 4

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/d;->b:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->values()Ljava/util/Collection;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcn/cheln/explorer/ds/scan/a;

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/a;->b:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->keySet()Ljava/util/Set;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/explorer/beans/b;

    iget-object v3, p0, Lcn/cheln/explorer/ds/scan/a;->a:Landroid/net/Uri;

    iget-object v0, v0, Lcn/cheln/explorer/beans/b;->a:Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    invoke-static {p1, v3, v0}, Lcn/cheln/explorer/ds/scan/d;->a(Landroid/content/Context;Landroid/net/Uri;I)V

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/a;->c:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->values()Ljava/util/Collection;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_1
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/explorer/beans/b;

    iget-object v3, p0, Lcn/cheln/explorer/ds/scan/a;->a:Landroid/net/Uri;

    iget-object v0, v0, Lcn/cheln/explorer/beans/b;->a:Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    invoke-static {p1, v3, v0}, Lcn/cheln/explorer/ds/scan/d;->a(Landroid/content/Context;Landroid/net/Uri;I)V

    goto :goto_1

    :cond_2
    return-void
.end method

.method public final a(Landroid/content/Context;Ljava/lang/String;)V
    .locals 4

    const-string v3, "apk"

    const-string v0, "video"

    const-string v0, "image"

    const-string v0, "audio"

    const-string v0, "_data asc"

    if-eqz p2, :cond_0

    const-string v0, "doc"

    invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    :cond_0
    const-string v0, "mime_type is not null and (mime_type not like \'application/vnd.android.package-archive\' and mime_type like \'application%\' ) or mime_type like \'text%\' and  format  <> 12289"

    sget-object v1, Lcn/cheln/explorer/ds/a;->e:Landroid/net/Uri;

    invoke-direct {p0, p1, v1, v0}, Lcn/cheln/explorer/ds/scan/d;->a(Landroid/content/Context;Landroid/net/Uri;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v1

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/d;->b:Ljava/util/Map;

    const-string v2, "doc"

    invoke-interface {v0, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/explorer/ds/scan/a;

    invoke-static {v1, v0}, Lcn/cheln/explorer/ds/scan/d;->a(Landroid/database/Cursor;Lcn/cheln/explorer/ds/scan/a;)V

    :cond_1
    if-eqz p2, :cond_2

    const-string v0, "apk"

    invoke-virtual {p2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    :cond_2
    const-string v0, "format=12288 and lower(_data) like \'%.apk\' "

    sget-object v1, Lcn/cheln/explorer/ds/a;->e:Landroid/net/Uri;

    invoke-direct {p0, p1, v1, v0}, Lcn/cheln/explorer/ds/scan/d;->a(Landroid/content/Context;Landroid/net/Uri;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v1

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/d;->b:Ljava/util/Map;

    const-string v2, "apk"

    invoke-interface {v0, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/explorer/ds/scan/a;

    invoke-static {v1, v0}, Lcn/cheln/explorer/ds/scan/d;->a(Landroid/database/Cursor;Lcn/cheln/explorer/ds/scan/a;)V

    :cond_3
    if-eqz p2, :cond_4

    const-string v0, "folder"

    invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_5

    :cond_4
    const-string v0, "format=12289"

    sget-object v1, Lcn/cheln/explorer/ds/a;->d:Landroid/net/Uri;

    invoke-direct {p0, p1, v1, v0}, Lcn/cheln/explorer/ds/scan/d;->a(Landroid/content/Context;Landroid/net/Uri;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v1

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/d;->b:Ljava/util/Map;

    const-string v2, "folder"

    invoke-interface {v0, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/explorer/ds/scan/a;

    invoke-static {v1, v0}, Lcn/cheln/explorer/ds/scan/d;->a(Landroid/database/Cursor;Lcn/cheln/explorer/ds/scan/a;)V

    :cond_5
    if-eqz p2, :cond_6

    :try_start_0
    const-string v0, "image"

    invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_7

    :cond_6
    sget-object v0, Lcn/cheln/explorer/ds/a;->c:Landroid/net/Uri;

    const-string v1, "image"

    const-string v2, "_data asc"

    sget-object v3, Lcn/cheln/explorer/ds/scan/d;->a:[Ljava/lang/String;

    invoke-static {p1, v0, v1, v2, v3}, Lcn/cheln/explorer/ds/scan/d;->a(Landroid/content/Context;Landroid/net/Uri;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v1

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/d;->b:Ljava/util/Map;

    const-string v2, "image"

    invoke-interface {v0, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/explorer/ds/scan/a;

    invoke-static {v1, v0}, Lcn/cheln/explorer/ds/scan/d;->a(Landroid/database/Cursor;Lcn/cheln/explorer/ds/scan/a;)V

    :cond_7
    if-eqz p2, :cond_8

    const-string v0, "audio"

    invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_9

    :cond_8
    sget-object v0, Lcn/cheln/explorer/ds/a;->a:Landroid/net/Uri;

    const-string v1, "audio"

    const-string v2, "_data asc"

    sget-object v3, Lcn/cheln/explorer/ds/scan/d;->a:[Ljava/lang/String;

    invoke-static {p1, v0, v1, v2, v3}, Lcn/cheln/explorer/ds/scan/d;->a(Landroid/content/Context;Landroid/net/Uri;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v1

    iget-object v0, p0, Lcn/cheln/explorer/ds/scan/d;->b:Ljava/util/Map;

    const-string v2, "audio"

    invoke-interface {v0, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/explorer/ds/scan/a;

    invoke-static {v1, v0}, Lcn/cheln/explorer/ds/scan/d;->a(Landroid/database/Cursor;Lcn/cheln/explorer/ds/scan/a;)V

    :cond_9
    if-eqz p2, :cond_a

    const-string v0, "video"

    invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_b

    :cond_a
    sget-object v0, Lcn/cheln/explorer/ds/a;->b:Landroid/net/Uri;

    const-string v1, "video"

    const-string v2, "_data asc"

    sget-object v3, Lcn/cheln/explorer/ds/scan/d;->a:[Ljava/lang/String;

    invoke-static {p1, v0, v1, v2, v3}, Lcn/cheln/explorer/ds/scan/d;->a(Landroid/content/Context;Landroid/net/Uri;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v0

    iget-object v1, p0, Lcn/cheln/explorer/ds/scan/d;->b:Ljava/util/Map;

    const-string v2, "video"

    invoke-interface {v1, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcn/cheln/explorer/ds/scan/a;

    invoke-static {v0, p0}, Lcn/cheln/explorer/ds/scan/d;->a(Landroid/database/Cursor;Lcn/cheln/explorer/ds/scan/a;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_b
    :goto_0
    return-void

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0
.end method
